package flc.ast.bean;

import androidx.annotation.Keep;

import java.util.Objects;

@Keep
public class AppScreenBean {
    private String packageName;
    private int screenOrientation;

    public AppScreenBean(String packageName, int screenOrientation) {
        this.packageName = packageName;
        this.screenOrientation = screenOrientation;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public int getScreenOrientation() {
        return screenOrientation;
    }

    public void setScreenOrientation(int screenOrientation) {
        this.screenOrientation = screenOrientation;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AppScreenBean bean = (AppScreenBean) o;
        return screenOrientation == bean.screenOrientation && Objects.equals(packageName, bean.packageName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(packageName, screenOrientation);
    }
}
